﻿<div>
    <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">Simple Task System</a>
            </div>
            <div class="collapse navbar-collapse">
                <ul class="nav navbar-nav" data-bind="foreach: menu.items">
                    <li data-bind="css: { active: $root.router.activeInstruction().config.menuName == name }">
                        <a href="{{url}}"><i class="{{icon}}"></i> {{displayName}}</a>
                    </li>
                </ul>
                <ul class="nav navbar-nav navbar-right">
                    <li class="dropdown">
                        <a href="" data-toggle="dropdown"><i class="{{currentLanguage.icon}}"></i> <span>{{currentLanguage.displayName}}</span> <b class="caret"></b></a>
                        <ul class="dropdown-menu" data-bind="foreach: languages">
                            <li data-bind="visible: $root.currentLanguage.name != name"><a href="{{'/AbpLocalization/ChangeCulture?cultureName=' +  name}}"><i class="{{icon}}"></i> {{displayName}}</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>

    <div class="container">
        <div class="durandal-animation-container">
            <div data-bind="router: { transition: 'entrance' }"></div>
        </div>
    </div>
</div>